Jump to content

Povolání přes Klávesu


Vidie

Recommended Posts

 

Robim si povolania ukazka: forward IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius);

forward IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius);

forward GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z);

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(3) : error 017: undefined symbol "GetPlayerDistanceToPointEx"

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1) : warning 203: symbol is never used: "z"

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1) : warning 203: symbol is never used: "y"

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1) : warning 203: symbol is never used: "x"

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1) : warning 203: symbol is never used: "playerid"

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1323) : warning 209: function "OnPlayerKeyStateChange" should return a value

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(1323) : error 010: invalid function or declaration

C:\Documents and Settings\spravca\Desktop\Všetko o gtaa\samp severr\gamemodes\CrazyCity.pwn(3) : error 004: function "GetPlayerDistanceToPointEx" is not implemented

 

1 Error.

 

C:\Documents and Settings\kosar\My Documents\Untitled.pwn(192) : error 020: invalid symbol name ""

C:\Documents and Settings\kosar\My Documents\Untitled.pwn(202) : warning 203: symbol is never used: "IsPlayerInSphere"

 

Riadky:

 

Riadok 20 chyba: }

Riadok 203 chyba: tam nic neni

 

prosím poradte kde je chyba :cry: (som novacik) :!:

 

No tak to x, y, z tam si daj súradnice :d .....lebo x y z niesu súradnice :d ... to je len pre to aby si ty vedel kde máš dať súradnice :d ... ak ma chápeš

Link to comment
Share on other sites

  • 1 month later...

Chyba

pwn(391) : error 017: undefined symbol "COLOR"

pwn(391) : warning 215: expression has no effect

pwn(391) : warning 215: expression has no effect

pwn(391) : error 001: expected token: ";", but found ")"

pwn(391) : error 029: invalid expression, assumed zero

pwn(391) : fatal error 107: too many error messages on one line

u Textu

SCM(playerid,COLOR_RED 0xFF0000AA ,"Pro zaměstnáni stiskni L.ATL");

prosím jak to opravým? (Sem Lamka v PWN "affraid" "pale" )

Link to comment
Share on other sites

":2yipkup0]Chyba
pwn(391) : error 017: undefined symbol "COLOR"

pwn(391) : warning 215: expression has no effect

pwn(391) : warning 215: expression has no effect

pwn(391) : error 001: expected token: ";", but found ")"

pwn(391) : error 029: invalid expression, assumed zero

pwn(391) : fatal error 107: too many error messages on one line

u Textu

SCM(playerid,COLOR_RED 0xFF0000AA ,"Pro zaměstnáni stiskni L.ATL");

prosím jak to opravým? (Sem Lamka v PWN "affraid" "pale" )

 

 

SCM(playerid,COLOR_RED 0xFF0000AA ,"Pro zaměstnáni stiskni L.ATL");

 

označené smaž

Link to comment
Share on other sites

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(25) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(34) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(39) : warning 217: loose indentation

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(158) : error 017: undefined symbol "COLOR_"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(160) : warning 217: loose indentation

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(196) : error 017: undefined symbol "IsPlayerInSphere"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 017: undefined symbol "ID"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 017: undefined symbol "Skinu"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : fatal error 107: too many error messages on one line

 

 

Prosim dajte mi to niekdo na stahnutiee bez errorov

Link to comment
Share on other sites

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(25) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(34) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(39) : warning 217: loose indentation

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(158) : error 017: undefined symbol "COLOR_"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(160) : warning 217: loose indentation

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(196) : error 017: undefined symbol "IsPlayerInSphere"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 017: undefined symbol "ID"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 017: undefined symbol "Skinu"

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(199) : fatal error 107: too many error messages on one line

 

 

Prosim dajte mi to niekdo na stahnutiee bez errorov

moje slovo :d

Link to comment
Share on other sites

Ale ja nie :d

 

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(25) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(34) : error 026: no matching "#if..." už len

Link to comment
Share on other sites

ovec_":1gjlx5tv]Ale ja nie :d

 

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(25) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(34) : error 026: no matching "#if..." už len

 

smaž řádky:

#else if 
Link to comment
Share on other sites

ovec_":iu8lnrw1]Ale ja nie :d

 

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(25) : error 026: no matching "#if..."

C:\Documents and Settings\Robo\Plocha\Nejake povolani.pwn(34) : error 026: no matching "#if..." už len

 

smaž řádky:

#else if  
Link to comment
Share on other sites

hele ja to skusil a nemam zadny erory ani warningi presto kdyz to dam na server tak to nefaka pomozte mi pls

pawno:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include 

#if defined FILTERSCRIPT
new job[MAX_PLAYERS];
new povolanipick;
#define SCM SendClientMessage
public OnFilterScriptInit()
{
povolanipick = CreatePickup(1314,1,-2317,-1636.1999511719,483.39999389648);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}


public OnGameModeInit()
{
povolanipick = CreatePickup(1314,1,-2317,-1636.1999511719,483.39999389648);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == povolanipick){
SCM(playerid,COLOR_****,"Zaměstnej se Alt");
}
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_WALK){//ALT pro zaměstnání
if(IsPlayerInSphere(playerid,-2317,-1636.1999511719,483.39999389648, 3) == 1){//když je v určitých souřadnicích, Doplnte si!
if(job[playerid] == 1) return SendClientMessage(playerid, COLOR_GREEN, "[** ERROR **] Zde už jsi zaměstnán!");
job[playerid] = 1; // Zaněstná ho
SetPlayerSkin(playerid, 115);//nastavi skin
GivePlayerWeapon(playerid, ak47);// damu zbran
//ATD Zde si muzete doplnit třeba mu doplnit zdraví a tak 
}
}
return 1;
}
#endif

Link to comment
Share on other sites

pise mi to 4 erorry

C:\Users\Pc\Desktop\sh.pwn(9) : warning 217: loose indentation
C:\Users\Pc\Desktop\sh.pwn(20) : warning 217: loose indentation
C:\Users\Pc\Desktop\sh.pwn(25) : error 017: undefined symbol "COLOR_"
C:\Users\Pc\Desktop\sh.pwn(27) : warning 217: loose indentation
C:\Users\Pc\Desktop\sh.pwn(33) : error 017: undefined symbol "IsPlayerInSphere"
C:\Users\Pc\Desktop\sh.pwn(34) : error 017: undefined symbol "COLOR_GREEN"
C:\Users\Pc\Desktop\sh.pwn(37) : error 017: undefined symbol "ak47"
C:\Users\Pc\Desktop\sh.pwn(41) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

 

#include 

new job[MAX_PLAYERS];
new povolanipick;
#define SCM SendClientMessage
public OnFilterScriptInit()
{
povolanipick = CreatePickup(1314,1,-2317,-1636.1999511719,483.39999389648);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}


public OnGameModeInit()
{
povolanipick = CreatePickup(1314,1,-2317,-1636.1999511719,483.39999389648);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == povolanipick){
SCM(playerid,COLOR_****,"Zaměstnej se Alt");
}
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_WALK){//ALT pro zaměstnání
if(IsPlayerInSphere(playerid,-2317,-1636.1999511719,483.39999389648, 3) == 1){//když je v určitých souřadnicích, Doplnte si!
if(job[playerid] == 1) return SendClientMessage(playerid, COLOR_GREEN, "[** ERROR **] Zde už jsi zaměstnán!");
job[playerid] = 1; // Zaněstná ho
SetPlayerSkin(playerid, 115);//nastavi skin
GivePlayerWeapon(playerid, ak47);// damu zbran
//ATD Zde si muzete doplnit třeba mu doplnit zdraví a tak 
}
}
return 1;
}

Link to comment
Share on other sites

tak nahoru pod: #include

dej: #pragma tabsize 0

 

Potom když máš GivePlayerWeapon, tak musíš takto:

GivePlayerWeapon(playerid, 26, 50);

// 26 = ID zbraně a 50 = počet nábojů. (http://wiki.sa-mp.com/wiki/GivePlayerWeapon)

 

Potom si nadefinuješ COLOR_GREEN.

takže nahoru: #define COLOR_GREEN 0x00FF00AA

A jak máš to: COLOR_****, tak tam dej COLOR_GREEN, nebo si nadefinuj COLOR_****

 

A nakonec tam musíš dát funkci IsPlayerInSphere. Viz. zde post215970.html

Link to comment
Share on other sites

Kubashek už rozumieš ?

 

C:\Users\Pc\Desktop\sh.pwn(25) : error 017: nieje definovane "COLOR_"

C:\Users\Pc\Desktop\sh.pwn(27) : warning 217: zle definovane

C:\Users\Pc\Desktop\sh.pwn(33) : error 017: nieje definovane "IsPlayerInSphere"

C:\Users\Pc\Desktop\sh.pwn(34) : error 017: nieje definovane "COLOR_GREEN"

C:\Users\Pc\Desktop\sh.pwn(37) : error 017: nieje definovane "ak47"

Link to comment
Share on other sites

Kubashek už rozumieš ?

 

C:\Users\Pc\Desktop\sh.pwn(25) : error 017: nieje definovane "COLOR_"

C:\Users\Pc\Desktop\sh.pwn(27) : warning 217: zle definovane

C:\Users\Pc\Desktop\sh.pwn(33) : error 017: nieje definovane "IsPlayerInSphere"

C:\Users\Pc\Desktop\sh.pwn(34) : error 017: nieje definovane "COLOR_GREEN"

C:\Users\Pc\Desktop\sh.pwn(37) : error 017: nieje definovane "ak47"

 

Nic proti, ale myslím, že přeložit si to snad umí. Tady jde spíše o vysvětlení.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...