22.11.2018, 11:11
Hello everyone and thanks for reading this.
Basically what I want to achieve is if the player is an admin and is logged in the rcon I want to make a command where he can delete all the spawned vehicles and this is what I made in PAWN so far:
Right of the bat I know I should be using a different CMD system by now but I just haven't learned it yet so please excuse me.
These are the errors I get:
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 029: invalid expression, assumed zero
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : warning 215: expression has no effect
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 001: expected token: ";", but found ")"
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 029: invalid expression, assumed zero
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Which is on the public OnPlayerCommandText(playerid, cmdtext[]) line.
I suppose the next lines also cause errors but I can't know that until I fix the first line so thanks so much in advance for any advice!
Basically what I want to achieve is if the player is an admin and is logged in the rcon I want to make a command where he can delete all the spawned vehicles and this is what I made in PAWN so far:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) if(!strcmp("/destroyallvehicles", cmdtext, == 0) //if(!strcmp("/destroyallvehicles", cmdtext, == 0) //true)) //true, 8)) //true, == 0) { if(IsPlayerAdmin(playerid)) //if(PlayerInfo[playerid][pAdmin] >= new vehid= GetPlayerVehicleID(playerid); while(IsVehicleConnected(++vehid)) DestroyVehicle(vehid); new spawnedcar = vehid >=400; vehid < 611; vehid++) return 1; } return 0; }
These are the errors I get:
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 029: invalid expression, assumed zero
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : warning 215: expression has no effect
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 001: expected token: ";", but found ")"
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : error 029: invalid expression, assumed zero
C:\Users\Markhoss\Desktop\SAMP Prison Malmedes Server\gamemodes\prisonmalmedes.pwn(1139) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Which is on the public OnPlayerCommandText(playerid, cmdtext[]) line.
I suppose the next lines also cause errors but I can't know that until I fix the first line so thanks so much in advance for any advice!