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

Thiy is my code.

//Autoszerelohoz
for(new x;x<sizeof(MechVehicles);x++) {
format(string, sizeof(string), "MECHANIC %d", MechVehicles[x]);
SetVehicleNumberPlate(MechVehicles[x], string);
SetVehicleToRespawn(MechVehicles[x]);
}

Code:
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(653) : error 017: undefined symbol "string"
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(653) : error 017: undefined symbol "string"
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(653) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Desktop\NA-RP\gamemodes\rcrp.pwn(653) : 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.
Please help
Eyex is offline   Reply With Quote