../gamemodes/OnCommand.pwn(23562) : error 017: undefined symbol "string" ../gamemodes/OnCommand.pwn(23562) : warning 215: expression has no effect ../gamemodes/OnCommand.pwn(23562) : error 001: expected token: ";", but found "]" ../gamemodes/OnCommand.pwn(23562) : error 029: invalid expression, assumed zero ../gamemodes/OnCommand.pwn(23562) : fatal error 107: too many error messages on one line
}
COMMAND:radiospawn2(playerid, params[])
{
string[1000];
for(new x;x<sizeof(RadioObjects);x++)
{
format(string, sizeof(string), "%s%s\n", string, RadioObjects[x][radioname]);
}
DestroyFurnitureSelectionMenu(playerid);
SetPVarInt(playerid, "furnc_active", 1);
CreateFurnitureSelectionMenu(playerid);
SelectTextDraw(playerid, 0xACCBF1FF);
return 1;
}
COMMAND:radiospawn2(playerid, params[])
{
new string[1000];
for(new x;x<sizeof(RadioObjects);x++)
{
format(string, sizeof(string), "%s%s\n", string, RadioObjects[x][radioname]);
}
DestroyFurnitureSelectionMenu(playerid);
SetPVarInt(playerid, "furnc_active", 1);
CreateFurnitureSelectionMenu(playerid);
SelectTextDraw(playerid, 0xACCBF1FF);
return 1;
}
try this
PHP код:
|
yes, you don't create the string vector, you have this
string[1000]; and I chaged in this new string[1000]; if you don't put "new" before the name of string, the variable don't create |