\"{FF0000}[ADMIN]{00FF00}%s {FFFF00}helyére rakta az össze jármûvet!\"
#include <a_samp>forward CarRespawn();public OnFilterScriptInit()}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(\"/rr\", cmdtext, true) == 0){ if(!IsPlayerAdmin(playerid)) return 0; { for ( new vid = 0; vid < MAX_VEHICLES; vid ++ ) { if ( !IsVehicleOccupied ( vid ) ) { SetVehicleToRespawn ( vid ); } } SendClientMessageToAll \"{FF0000}[ADMIN]:{00FF00}%s {FFFF00}helyére rakta az összes nem használt jármûvet!\"; }}return 0;}
#include <a_samp>public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(\"/rr\", cmdtext, true) == 0) { if(!IsPlayerAdmin(playerid)) return 0; { for(new vid = 0; vid < MAX_VEHICLES; vid ++) { if(!IsVehicleOccupied(vid)) { SetVehicleToRespawn(vid); } } new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00}%s {FFFF00}helyére rakta az összes nem használt jármûvet!\", name); SendClientMessageToAll(0xFFFFFFFF, string); } return 1; } return 0;}
TartalyText[playerid] = 0; //hibaTartalyText2[playerid] = 0; //hiba---------------if(TartalyText[playerid] != 0) //hiba{DeletePlayer3DTextLabel(playerid,TartalyText[playerid]);DeletePlayer3DTextLabel(playerid,TartalyText2[playerid]);}------------------Itt nincs hibaelse SendClientMessage(playerid, HIBA, \"Nem vagy egy benzinkútnál!\"); TartalyText[playerid] = CreatePlayer3DTextLabel(playerid,\"/tartalyleadas\",0xFF0000FF,1378.9713,456.7700,20.4966,40.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0); TartalyText2[playerid] = CreatePlayer3DTextLabel(playerid,\"/tartalyleadas\",0xFF0000FF,652.8015,-562.0030,16.9195,40.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
new PlayerText3D:TartalyText[MAX_PLAYERS], PlayerText3D:TartalyText2[MAX_PLAYERS];
new PlayerText3D:TartalyText[MAX_PLAYERS];new PlayerText3D:TartalyText2[MAX_PLAYERS];
strtok(const string[], &index) {new length = strlen(string);while ((index < length) && (string[index] <= \'\')) index++;new offset = index;new result[20];while ((index < length) && (string[index] > (\'\') && ((index - offset) < (sizeof(result) - 1))) {result[index - offset] = string[index];index++;}result[index - offset] = EOS;return result;}
error 027: invalid character constanterror 027: invalid character constanterror 029: invalid expression, assumed zero