10.01.2011, 16:17
i must learn but my friend want to have this script today so pls can you add to reapair this shit :P ?
Код:
C:\Documents and Settings\ok\Pulpit\spawn.pwn(12) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(12) : error 017: undefined symbol "strtok" C:\Documents and Settings\ok\Pulpit\spawn.pwn(13) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(15) : error 017: undefined symbol "COLOR_ORANGE" C:\Documents and Settings\ok\Pulpit\spawn.pwn(18) : error 017: undefined symbol "GetVehicleModelIDFromName" C:\Documents and Settings\ok\Pulpit\spawn.pwn(21) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(22) : error 017: undefined symbol "COLOR_RED" C:\Documents and Settings\ok\Pulpit\spawn.pwn(24) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(24) : error 017: undefined symbol "strtok" C:\Documents and Settings\ok\Pulpit\spawn.pwn(25) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(27) : error 017: undefined symbol "COLOR_ORANGE" C:\Documents and Settings\ok\Pulpit\spawn.pwn(30) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(32) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(32) : error 017: undefined symbol "strtok" C:\Documents and Settings\ok\Pulpit\spawn.pwn(33) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(35) : error 017: undefined symbol "COLOR_ORANGE" C:\Documents and Settings\ok\Pulpit\spawn.pwn(38) : error 017: undefined symbol "tmp" C:\Documents and Settings\ok\Pulpit\spawn.pwn(45) : error 017: undefined symbol "string" C:\Documents and Settings\ok\Pulpit\spawn.pwn(45) : error 017: undefined symbol "string" C:\Documents and Settings\ok\Pulpit\spawn.pwn(45) : warning 215: expression has no effect C:\Documents and Settings\ok\Pulpit\spawn.pwn(45) : error 001: expected token: ";", but found "]" C:\Documents and Settings\ok\Pulpit\spawn.pwn(45) : fatal error 107: too many error messages on one line
Код:
#include <a_samp> new VHACAR; new cmd[256]; public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/VHAV", true) == 0) { if (IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "Uzyj: /VHAV [nazwa/id] [color1] [color2]"); return 1; } new car = GetVehicleModelIDFromName(tmp); if (car == -1) { car = strval(tmp); if(car < 400 || car > 611) return SendClientMessage(playerid, COLOR_RED, "ID pojazdow sa od 400 do 611 !"); } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "Uzyj: /VHVA [nazwa/id] [color1] [color2]"); return 1; } new color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "Uzyj: /VHVA [nazwa/id] [color1] [color2]"); return 1; } new color2 = strval(tmp); new Float:X,Float:Y,Float:Z,Float:A; GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid, A); X += (5 * floatsin(-A, degrees)); Y += (5 * floatcos(-A, degrees)); VHACAR = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 600000000); format(string, sizeof(string), "Zespawnowales %s(%d). Milej zabawy.", VehNames[GetVehicleModel(VHACAR)-400], VHACAR); SendClientMessage(playerid, COLOR_LIGHTGREEN, string); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), "Vice Head Admin %s zespawnowal (%d Pojazd Na Mapie) [ Model: %s ]", sendername, VHACAR, VehNames[GetVehicleModel(VHACAR)-400]); SendClientMessageToAdmins(COLOR_LIGHTBLUE, string); } return 1; } //Do Respawnu: if(strcmp(cmdtext, "/VHAR", true)==0 && IsPlayerAdmin(playerid)) { for(new i=400; i<611; i++)DestroyVehicle(i); format(string, sizeof(string), "Vice Head Admin %s Zrespawnował Pojazdy"); SendClientMessageToAll(COLOR_LIGHTRED, string); return true; } return 1; }