What Am I doing wrong?
#1

Код:
 if(strcmp(cmdtext, "/needtaxi", true) == 0) {
	   new pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof (pname));
     format(string, sizeof(string), " %s potrzebuje Taxi", pname);
     SendClientMessage(playerid, COLOR_GREEN, string); //
  return 1;}
  
 else if(strcmp(cmdtext, "/wtaxi", true) == 0) {
	 new pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof (pname));
     format(string, sizeof(string), " %s nie potrzebuje juz Taxi", pname);
     SendClientMessage(playerid, COLOR_GREEN, string); //
  return 1;}
  
else if(strcmp(cmd, "/taxi", true) == 0) {
	 new pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof (pname));
     format(string, sizeof(string), " %s jest taksowkarzem. Jak chcesz go uzyc wpisz /needtaxi", pname);
     SendClientMessage(playerid, COLOR_GREEN, string); //
  return 1;}
...I get those errors:

Код:
C:\DOCUME~1\KAMIL\Pulpit\RPGTDM~1\RPG.pwn(1907) : error 017: undefined symbol "string"
C:\DOCUME~1\KAMIL\Pulpit\RPGTDM~1\RPG.pwn(1907) : error 017: undefined symbol "string"
C:\DOCUME~1\KAMIL\Pulpit\RPGTDM~1\RPG.pwn(1907) : error 029: invalid expression, assumed zero
C:\DOCUME~1\KAMIL\Pulpit\RPGTDM~1\RPG.pwn(1907) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
What Am I Doing Wrong? I had same problem with another script saying error 017: undefined symbol ''idx''. And I'm confused because I can't find any information. I tried also on SA-MP Wiki. Help would be appreciated if possible.

Oh and btw, here is the line that might be wrong:

Код:
     format(string, sizeof(string), " %s potrzebuje Taxi", pname);
Thanks and Regards
Puzi
Reply


Messages In This Thread
What Am I doing wrong? - by Puzi - 30.05.2009, 13:45
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:48
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:49
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:50
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:53
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:03
Re: What Am I doing wrong? - by member - 30.05.2009, 14:07
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:34
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:47

Forum Jump:


Users browsing this thread: 3 Guest(s)