31.01.2012, 23:29
This is my compiler:
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(41) : error 017: undefined symbol "playerid"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(93) : error 017: undefined symbol "vehicleid"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(93) : error 017: undefined symbol "COLOR_GREEN"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(94) : error 029: invalid expression, assumed zero
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(94) : error 017: undefined symbol "COLOR_ERROR"
This is my code:
What is wrong with it? Any help.
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(41) : error 017: undefined symbol "playerid"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(93) : error 017: undefined symbol "vehicleid"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(93) : error 017: undefined symbol "COLOR_GREEN"
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(94) : error 029: invalid expression, assumed zero
C:\Users\Keegan\Desktop\gamemodes\Begginers Drift Script.pwn(94) : error 017: undefined symbol "COLOR_ERROR"
This is my code:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/repair", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) SetVehicleHealth(vehicleid, 1000.0); SendClientMessage(playerid, COLOR_GREEN,"Your Car Has Been Fixed"); else SendClientMessage(playerid, COLOR_ERROR,"You are not a RCON Admin to do this!"); return 1; } return 0; }