Ok,help me!
#1

What's worng here please?

pawn Код:
if (strcmp("/heal", cmdtext, true, 5) == 0)
    {
                if(gTeam == TEAM_MEDICS) //519
                {
                   if(IsPlayerConnected(playerid))
                   {
                       tmp = strtok(cmdtext); //523
                       if(!strlen(tmp)) //524
                       {
                          SendClientMessage(playerid,RED,"USAGE: /heal [playerid]");
                          return 1;
                       }
                       new player1;
                       player1 = ReturnUser(tmp); //530
                       tmp = strtok(cmdtext); //531
                       if(IsPlayerConnected(player1))
                       {
                          if(player1 != INVALID_PLAYER_ID)
                          {
                             GetPlayerName(player1,player1name,sizeof(player1name)); //536
                             GetPlayerName(playerid,medicname,sizeof(medicname));
                             new string[128];
                             format(string,sizeof(string),"%s has been healed by medic %s.",player1name,medicname);
                             SetPlayerHealth(player1,100);
                             GivePlayerMoney(playerid,300);
                             GivePlayerMoney(playerid,-300);
                             SendClientMessageToAll(GREEN,string);
                         }
                      }
                  }
              }

    }
Here are errors:

Код:
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(519) : error 033: array must be indexed (variable "gTeam")
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(523) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(523) : warning 202: number of arguments does not match definition
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(524) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(530) : error 017: undefined symbol "ReturnUser"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(531) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(531) : warning 202: number of arguments does not match definition
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 017: undefined symbol "player1name"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 017: undefined symbol "player1name"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 029: invalid expression, assumed zero
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : fatal error 107: too many error messages on one line

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

Help please!??!!
Reply
#3

dont double post, only bump every 48 hours please
Reply
#4

Apparently you failed to copy&paste...
Reply
#5

yeah sure btoh answers were helpful sure
Reply
#6

nobody yet?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)