03.01.2012, 06:59
Opa galera, tou com problemas ao compilar com um cуdigo que coloquei anti tal tecla..
A se poderem adiantar pra mim, qual nome das teclas INSERT e F12? para colocar no lugar da KEY_JUMP?
Pesquisei principalmente aqui https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List e nao to achando.. Pois tambйm nгo sei se a tecla esta no padrгo do samp..
EDIT@
Teclas fora do padrгo de samp, entгo sу tentem decifrar os erros :X
Код:
if(newkeys == KEY_JUMP) { SendClientMessage(playerid, 0xFFFFFFFF, "Vocк estб andando pulando e isso й ant-rp"); for(new i = 0; i < MAX_PLAYERS; i ++) { if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid)) { new n[24], str[100]; GetPlayerName(playerid, n, 24); format(str, sizeof(str), "% Estб Andando Pulando"); SendClientMessage(i, -1, str); return 1; } }
Код:
C:\Documents and Settings\Usuario\Desktop\testzom.pwn(672) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Usuario\Desktop\testzom.pwn(672) : warning 215: expression has no effect C:\Documents and Settings\Usuario\Desktop\testzom.pwn(672) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Usuario\Desktop\testzom.pwn(672) : error 029: invalid expression, assumed zero C:\Documents and Settings\Usuario\Desktop\testzom.pwn(672) : fatal error 107: too many error messages on one line
Pesquisei principalmente aqui https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List e nao to achando.. Pois tambйm nгo sei se a tecla esta no padrгo do samp..
EDIT@
Teclas fora do padrгo de samp, entгo sу tentem decifrar os erros :X