View Single Post
Old 16/01/2020, 03:50 PM   #5
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default Re: Undefined String Error Please Help!

Quote:
for(new x;x<sizeof(MechVehicles);x++){
new string[124];
format(string; sizeof(string), "MECHANIC %d", MechVehicles[x]);
SetVehicleNumberPlate(MechVehicles[x],);
SetVehicleToRespawn(MechVehicles[x]);
}
Quote:
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : error 001: expected token: ",", but found ";"
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : warning 215: expression has no effect
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : warning 215: expression has no effect
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : warning 215: expression has no effect
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : error 001: expected token: ";", but found ")"
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(656) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Do I need to define String at the beginning of the mode?
Eyex is offline   Reply With Quote