SaLiErY Posted February 10, 2011 Report Share Posted February 10, 2011 buna am copiat si eu fs cu automat radar in mod si imi da erorile de mai josC:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 017: undefined symbol "SavePlayerPosEnum"C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 009: invalid array size (negative, zero or out of bounds)linia 487 new SavePlayerPos[SLOTS][SavePlayerPosEnum];va rog ajutatima Link to comment Share on other sites More sharing options...
-=[Vyorel]=- Posted February 10, 2011 Report Share Posted February 10, 2011 Adauga asta deasupra la linia 487enum SavePlayerPosEnum{ Float:LastX, Float:LastY, Float:LastZ} ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
SaLiErY Posted February 11, 2011 Author Report Share Posted February 11, 2011 deci am rezolvat nu da erori nu da nimic dar am o problema am facut comanda in asea fel sa dea si punte de amenda si la 15 punte de amenda sa iti ia permisu dar nu stiu dc da dor la id 0 help me plsuitati functiastock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed) { new fine[MAX_PLAYERS]; new str[256]; new giveplayerid; new string[256]; new sendername[MAX_PLAYER_NAME]; new result[20]; if(objectcreated!=maxobject) { CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10); objectcreated++; } if((distance1[playerid])>speed) { if(IsPlayerInCircle(playerid, xx, yy, radius) && GetPlayerState(playerid)== PLAYER_STATE_DRIVER) { fine[playerid]=((distance1[playerid]*17/10)-speed); GivePlayerMoney(playerid, -2000); format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]); SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Ai Primit Un Punct De Penalizare (La 15 Puncte De Penalizare Vei Pierde Permisu)"); SendClientMessage(playerid, VERDEFRACO, str); PlayerInfo[giveplayerid][pCarLicPoint] += 1; if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15) { format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare (Ai Acumulat 15 Puncte De Penalizare), reason: Viteza", sendername); SendClientMessage(giveplayerid, COLOR_ADMIN, string); //format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare); //SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare"); PlayerInfo[giveplayerid][pCarLic] = 0; PlayerInfo[giveplayerid][pCarLicPoint] = 0; return 1; } PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0); } } } Link to comment Share on other sites More sharing options...
SaLiErY Posted February 11, 2011 Author Report Share Posted February 11, 2011 deci am rezolvat nu da erori nu da nimic dar am o problema am facut comanda in asea fel sa dea si punte de amenda si la 15 punte de amenda sa iti ia permisu dar nu stiu dc da dor la id 0 help me plsuitati functiastock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed) { new fine[MAX_PLAYERS]; new str[256]; new giveplayerid; new string[256]; new sendername[MAX_PLAYER_NAME]; new result[20]; if(objectcreated!=maxobject) { CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10); objectcreated++; } if((distance1[playerid])>speed) { if(IsPlayerInCircle(playerid, xx, yy, radius) && GetPlayerState(playerid)== PLAYER_STATE_DRIVER) { fine[playerid]=((distance1[playerid]*17/10)-speed); GivePlayerMoney(playerid, -2000); format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]); SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Ai Primit Un Punct De Penalizare (La 15 Puncte De Penalizare Vei Pierde Permisu)"); SendClientMessage(playerid, VERDEFRACO, str); PlayerInfo[giveplayerid][pCarLicPoint] += 1; if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15) { format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare (Ai Acumulat 15 Puncte De Penalizare), reason: Viteza", sendername); SendClientMessage(giveplayerid, COLOR_ADMIN, string); //format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare); //SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare"); PlayerInfo[giveplayerid][pCarLic] = 0; PlayerInfo[giveplayerid][pCarLicPoint] = 0; return 1; } PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0); } } } Link to comment Share on other sites More sharing options...
Question
SaLiErY
buna am copiat si eu fs cu automat radar in mod si imi da erorile de mai jos
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 017: undefined symbol "SavePlayerPosEnum"
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 009: invalid array size (negative, zero or out of bounds)
linia 487
va rog ajutatima
Link to comment
Share on other sites
3 answers to this question
Recommended Posts