21.09.2014, 05:46
Hey, so I am new to scripting (really new) and I am trying to make a really simple teleportation list of commands. and I get this weird error " error 035: argument type mismatch (argument 2) "
here is my code
I know it's unorganized, and complex, but I'm new.
here is my code
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/telelist", cmdtext, true, 10) == 0) { SendClientMessage(playerid, "/SFPD, /dealership, /pizza, /PNS, /FD, /baseball, /docks."); return 1; } if (strcmp("/SFPD", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-1612.7786,664.5216,7.1875); SendClientMessage(playerid, "You have been teleported to the SFPD!"); return 1; } if (strcmp("/docks", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-1741.6323,29.1167,3.5547); SendClientMessage(playerid, "You have been teleported to the docks!"); return 1; } if (strcmp("/FD", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-2015.7677,85.6667,27.6799); SendClientMessage(playerid, "You have been teleported to the FD!"); return 1; } if (strcmp("/baseball", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-2331.9185,118.8575,35.3125); SendClientMessage(playerid, "You have been teleported to the baseball field!"); return 1; } if (strcmp("/PNS", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-1921.3580,236.5133,34.8583); SendClientMessage(playerid, "You have been teleported to the PNS!"); return 1; } if (strcmp("/pizza", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-1729.0831,1355.9103,7.1875); SendClientMessage(playerid, "You have been teleported to the pizzastack!"); return 1; } if (strcmp("/dealership", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-1641.6735,1203.9189,7.2490); SendClientMessage(playerid,"You have been teleported to the dealership!"); return 1; } return 0; } |
Quote:
C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(93) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(99) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(105) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(111) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(117) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(123) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(126) : warning 217: loose indentation C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(129) : error 035: argument type mismatch (argument 2) C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(132) : warning 217: loose indentation C:\Users\Ken\Desktop\SAMP Related\SAMP Server\pawno\Untitled.pwn(135) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors. |