SA-MP Forums Archive
String probs *easy fix* - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String probs *easy fix* (/showthread.php?tid=300277)



String probs *easy fix* - ikbenremco - 29.11.2011

Dont pay attention at Tester it's good but this is for helpers !


Quote:

command(fixvw, playerid, params[]) {
if(Player[playerid][Tester] >= 1)
SetPlayerVirtualWorld(playerid, 0);
format(string, sizeof(string), "%s has fixed your virtual world", GetName(playerid));
SendClientMessage(id, WHITE, string);

}

errors :

Quote:

C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 017: undefined symbol "string"
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 017: undefined symbol "string"
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 029: invalid expression, assumed zero
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : fatal error 107: too many error messages on one line




Re: String probs *easy fix* - CSSI - 29.11.2011

-_-
pawn Код:
new string[50];
You haven't defined string!
pawn Код:
command:fixvw( playerid, params[])
edit: You Haven't defined 'id' also.


Re: String probs *easy fix* - ikbenremco - 29.11.2011

Quote:

command:fixvw( playerid, params[]) {

if(Player[playerid][Tester] >= 1)
SetPlayerVirtualWorld(playerid, 0);
new string[50];
format(string, sizeof(string), "%s has fixed your virtual world", GetName(playerid));
SendClientMessage(playerid, WHITE, string);

}

Comamnd doesnt do anything now ..


Re: String probs *easy fix* - Kingunit - 29.11.2011

pawn Код:
CMD:fixvw(playerid, params[])
{
    new string[128], id, pname[24];
   
    GetPlayerName(playerid, pname, sizeof(pname));
   
    if(Player[playerid][Tester] >= 1)
    {
        SetPlayerVirtualWorld(id, 0);
        format(string, sizeof(string), "%s has fixed your virtual world", pname);
        SendClientMessage(id, x0FFFFFFFF, string);
    }
    return 1;
}



Re: String probs *easy fix* - ikbenremco - 29.11.2011

The one who get his vw fixed doenst recieve it the admin/helper recievs it !


Re: String probs *easy fix* - ikbenremco - 29.11.2011

please help meee


Re: String probs *easy fix* - .:Kaos:. - 29.11.2011

I'm not quite sure I understand. Are you trying to set the virtual world of the player who types the command to 0?


Re: String probs *easy fix* - Sinc - 29.11.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
pawn Код:
CMD:fixvw(playerid, params[])
{
    new string[128], id, pname[24];
   
    GetPlayerName(playerid, pname, sizeof(pname));
   
    if(Player[playerid][Tester] >= 1)
    {
        SetPlayerVirtualWorld(id, 0);
        format(string, sizeof(string), "%s has fixed your virtual world", pname);
        SendClientMessage(id, x0FFFFFFFF, string);
    }
    return 1;
}
"id" isn't objected to do anything.


Re: String probs *easy fix* - ikbenremco - 29.11.2011

I mean the `Helper` set the VW of the playerid to 0 (Incase of bugg)

And now the command doenst do a thing and the line only goes to who wrote the command