public OnPlayerConnect(playerid) { DOO_OnPlayerConnect(); } public OnPlayerDisconnect(playerid, reason) { DOO_OnPlayerDisconnect(); }
error 021: symbol already defined: "SetGameModeText" error 010: invalid function or declaration warning 202: number of arguments does not match definition warning 202: number of arguments does not match definition
Originally Posted by Sergiy
You have put 'SetGameModeText' under DOO_OnPlayerConnect() or DOO_OnPlayerDisconnect(), but it has already been used somewhere else in the script.
And about arguments, check strings. |
main() { print("\n----------------------------------"); print(" Drag Drift Stunt Tune Freeroam"); print("----------------------------------\n"); } #endif public OnGameModeInit() { DOO_OnGameModeInit(); } // Don't use these lines if it's a filterscript SetGameModeText("Drag Drift Stunt Tune Freeroam"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { DOO_OnPlayerConnect(); } public OnPlayerDisconnect(playerid, reason) { DOO_OnPlayerDisconnect(); } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333A,"Commands"); SendClientMessage(playerid,0xAA3333A,"/teleports /animlist /otheranim /carcommands"); SendClientMessage(playerid,0xAA3333A,"Extra: /countdown /kill /est "); SendClientMessage(playerid,0xAA3333A,"Admin commands:/acommands"); return 1; } if (strcmp("/acommands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333A,"Admin Commands"); SendClientMessage(playerid,0xAA3333A,"level1,level2,level3,level4,level5"); SendClientMessage(playerid,0xAA3333A,"House: /lvinfo"); return 1; } if (strcmp("/lvinfo", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333A,"Admin Base /lvahouse "); SendClientMessage(playerid,0xAA3333A,"Gate: /lvgopen /lvgclose"); SendClientMessage(playerid,0xAA3333A,"other: /lvcam1on /lvcam2on /cameraoff"); return 1; } if (strcmp("/teleports", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333A,"Drifts:/drift1 /drift2 /drift3 /drift4 /prodrift"); SendClientMessage(playerid,0xAA3333A,"Stunts:/bigjump"); SendClientMessage(playerid,0xAA3333A,"Airports:/ap1 /ap2 /ap3"); SendClientMessage(playerid,0xAA3333A,"Tune:/arch"); SendClientMessage(playerid,0xAA3333A,"Other:/br /hr"); SendClientMessage(playerid,0xAA3333A,"Drag: /drag1"); return 1; } return 0; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; }
public OnPlayerConnect(playerid) { DOO_OnPlayerConnect(); } public OnPlayerDisconnect(playerid, reason) <---- this is line 202 { DOO_OnPlayerDisconnect(); }
: warning 202: number of arguments does not match definition warning 202: number of arguments does not match definition