SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/05/2020, 07:05 AM   #1
GeorgeLimit
Big Clucker
 
GeorgeLimit's Avatar
 
Join Date: Mar 2018
Location: Jawa Timur, Indonesia
Posts: 161
Reputation: 0
Default Pawn.CMD

How i can use call::call(playerid, numberphone);
if i use that it will give me error
Code:
error 035: argument type mismatch (argument 2)
__________________

Quote:
That is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes
GeorgeLimit is offline   Reply With Quote
Old 16/05/2020, 07:53 AM   #2
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: Pawn.CMD

pawn Code:
callcmd::call(playerid, numberphone);
`numberphone` should be string.
__________________
Calisthenics is offline   Reply With Quote
Old 16/05/2020, 01:50 PM   #3
GeorgeLimit
Big Clucker
 
GeorgeLimit's Avatar
 
Join Date: Mar 2018
Location: Jawa Timur, Indonesia
Posts: 161
Reputation: 0
Default Re: Pawn.CMD

Quote:
Originally Posted by Calisthenics View Post
pawn Code:
callcmd::call(playerid, numberphone);
`numberphone` should be string.
Thanks bro its work
This my code
Code:
    new phonenumb = strval(numberab[playerid]);
    strdel(numberab[playerid],0,4);
    PlayerTextDrawSetString(playerid,KeyBoard2,"_");
    new callnumber[144];
   format(callnumber, 144, "%d", phonenumb);
   for(new i = 0; i <= MAX_PLAYERS; i++)
   {
        if(IsPlayerConnected(i))
        {
	     callcmd::call(playerid, callnumber);
             return 1;
	     }
    }
//Basic Script by adr1
__________________

Quote:
That is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes
GeorgeLimit is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tool/Web/Other] PAWN Fiddle - Share & run PAWN code online Peek Tools and Files 13 10/04/2019 07:12 PM
[Plugin] Vectoral Pawn - STL Data containers for pawn Rancho Plugin Development 69 25/03/2019 11:50 PM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 07:09 PM
New to pawn, trying to convert some C code to pawn CHC Scripting Help 2 22/06/2012 05:09 AM
[HELP] [pawn][/pawn] bbcode for phpbb3 Kasura Help Archive 4 20/11/2010 04:35 AM


All times are GMT. The time now is 04:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.